<%-- 
    Document   : editarUsuariosAdmin
    Created on : 07-mar-2012, 17:24:20
    Author     : Tarde
--%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<h1> <bean:message key="edit.admin.user"/></h1>
 
  <html:form action="/edituseradminok.do" enctype="multipart/form-data">
  <table>
  <tr>
  <html:hidden property="idUser"/>
  <td>  
    <bean:message key="login.txt"/>
  </td>
  <td>
    <html:text property="login" /> 
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="password.txt"/>
  </td>
  <td>
    <html:password property="password"/>
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="name.txt"/>
  </tD>
  <td>
    <html:text property="name"/>
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="surname.txt"/>
  </td>
  <td>
    <html:text property="surname"/>
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="email.txt"/>
  </td>
  <td>
    <html:text property="email" />
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="location.txt"/>
  </td>
  <td>
    <html:text property="location" />
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="avatar.txt"/>
  </tD>
  <td>
    <html:file property="avatar" size="50" />
  </tD>
  </tr>
  <tr>
  <td>
    <bean:message key="dispcorregir.txt"/>
  </tD>
  <td>
     <html:select property="availability">
        <c:forEach var="i" begin="1" end="10" step="1" varStatus ="status">
          <option value="${i}">${i}</option>
        </c:forEach>
    </html:select>
  </td>
  </tr>
  <tr>
  <td>
    <bean:message key="estado.txt"/>
  </tD>
  <td>
    <html:select property="estado">
       <logic:present name="listaestadosusuarios" >
       <logic:iterate id="estadoUsuario" name="listaestadosusuarios">
           <html:option value="${estadoUsuario.idestado}">${estadoUsuario.titulo}</html:option>  
       </logic:iterate>
       </logic:present>                              
    </html:select>
  </tD>
  </tr>
  <tr>
  <td>
  <html:submit><bean:message key="button.saveuser"/></html:submit> 
  </td>
  </tr>
  </table>

   
</html:form>



